import type { AppRouteModule } from '/@/router/types'

import { LAYOUT } from '/@/router/constant'
import { t } from '/@/hooks/web/useI18n'

const topo: AppRouteModule = {
  path: '/topo',
  name: 'topo',
  component: LAYOUT,
  redirect: '/topo/total-topology',
  meta: {
    orderNo: 1,
    icon: 'ion:md-git-network',
    title: t('routes.dashboard.sys'),
  },
  children: [
    {
      path: 'total-topology',
      name: 'totalTopology',
      component: () => import('/@/views/topo/TotalTopology.vue'),
      meta: {
        // affix: true,
        title: t('routes.dashboard.totalTopology'),
      },
    },
    {
      path: 'core-network-topology',
      name: 'coreNetworkTopology',
      component: () => import('/@/views/topo/CoreNetworkTopology.vue'),
      meta: {
        title: t('routes.dashboard.coreNetworkTopology'),
      },
    },
    {
      path: 'blockchain-network-topology',
      name: 'blockchainNetworkTopology',
      component: () => import('/@/views/topo/BlockchainNetworkTopology.vue'),
      meta: {
        title: t('routes.dashboard.blockchainNetworkTopology'),
      },
    },
  ],
}

export default topo
